<?php session_start(); include("libs/views/head.php");?>
<body>
	<div id="contenedor">
		<?php include("libs/views/cabecera.php");
		if ($_SESSION['admin'] == true){?>
		<?php 
		include("libs/views/barraOpciones.php");
		?>
		<div id="cuerpo">
			<table class="lista">
				<tr>
					<th>Nick</th>
					<th>Nombre</th>
					<th>Rol</th>
					<th>Modificar</th>
				</tr>
				<?php
				if (count($users) != 0){
						while ($user = $users->fetch()) {
						?>
				<tr>
					<td><?php echo $user['user']?></td>
					<td><?php echo $user['name']?></td>
					<td><?php echo $user['Description'] ?></td>
					<td><img src="libs/css/img/edit.png" class="estiloObs" onclick="modifyUser();"></td>
				</tr>
				<?php 
						}
 					}
 					?>
			</table>
		</div>
		<?php 
		}
		include("libs/views/pie.php");?>
	</div>
</body>
</html>
